<?php if(!is_null($msg)){ echo $msg;}?>
<?php echo form_open_multipart('admin/banner/editBanner/'.$data->Banner_id);?>
<div> <?php echo validation_errors(); ?></div>
<div class="workplace">           
		   <div class="row-fluid">
		   <table border="1">
		  <?php
			//$categories = $result;
			//echo '<pre>' . print_r($result, true) . '</pre>';
			//echo $combo;	
		  ?>
			</table>
                <div class="span12">
                    <div class="head">
                        <div class="isw-documents"></div>
                        <h1>Thêm Banner</h1>
                        <div class="clear"></div>
                    </div>
                    <div class="block-fluid">                        
                        
                        <div class="row-form">
                            <div class="span3">Tên Banner:</div>
                            <div class="span9"><input type="text" name="txtNameImage" value="<?php echo $data->TenBanner; ?>" /></div>
                            <div class="clear"></div>
                        </div>                            

                       <div class="row-form">
                            <div class="span3">Đường dẫn của ảnh:</div>
                             <div class="span7">                                                                
                                <input type="file" name="fileImage"/>
                            </div>
                            <div class="clear"></div>
                        </div>  

                        <div class="row-form">
                            <div class="span3">Ẩn / hiện Banner:</div>
                             <div class="span7">
                                <label class="checkbox inline">
                                    <input type ="radio" name="radioVisible" value="0" <?php
                                        if($data->Active == "0") {
                                            echo "checked";
                                        }

                                    ?>/> Ẩn
                                </label>
                                <label class ="checkbox inline">
                                    <input type ="radio" name="radioVisible" value = "1" <?php
                                        if($data->Active == "1") {
                                            echo "checked";
                                        }

                                    ?>/> Hiện
                                </label>
                            </div>
                            <div class ="clear"></div>
                        </div> 

                        <div class="row-form">
                            <div class="span3">Giới thiệu ngắn gọn:</div>
                             <div class="span9"><textarea   name="txtMota"><?php echo $data->Mota; ?></textarea></div>
                            <div class="clear"></div>
                        </div> 
 <div class="row-form">
                            <div class="span3">Url:</div>
                            <div class="span9"><input type="text" name="url" value="<?php echo $data->urlLink; ?>" /></div>
                            <div class="clear"></div>
                        </div>  
                        


						<div style="text-align:center;">
							<button class="btn" type="submit">Lưu lại</button>    
							<button class="btn btn-danger" type="button">Hủy bỏ</button>
						</div>
                    </div>
                </div>
				
            </div>
		</div>